body {
  font-family: "Montserrat", sans-serif;
}

:root {
  --big-title-size: 50px;
  --height-dm: 167px;
}

a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

ul {
  list-style-type: none;
}

header {
  width: 100%;
  height: 297px;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  background-image: url(/static/ebook/images/bgr.png);
  background-repeat: round;
  z-index: -1;
}

div#search {
  background: #f4f4f4;
  border-radius: 5px;
  box-shadow: 0px 3px 6px 0px #00000026;
  display: flex;
  align-items: center;
  max-width: 1000px;
  height: 68px;
  margin: 0 auto;
}

.danhmuc {
  width: 30%;
  padding: 20px 0 20px 20px;
  z-index: 10;
}

.danhmuc.active {
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  margin-top: calc(var(--height-dm) + 2px);
  background-color: #fff;
}

.search {
  width: 70%;
  padding: 20px 32px 20px 0px;
}

.title {
  padding-top: 60px;
  margin-bottom: 50px;
}

.title h3 {
  color: rgba(205, 86, 81, 1);
  font-weight: 700;
  font-size: 48px;
}

input[type="seach"] {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
}

.danhmuc__select p {
  font-weight: 600;
  color: rgba(77, 77, 77, 1);
  font-size: 18px;
}

.line {
  background-color: rgba(224, 224, 224, 1);
  height: 40px;
  width: 1px;
}

.book-hint {
  padding: 0 40px;
  margin-bottom: 40px;
  position: relative;
}

.books-hint {
  display: grid;
  /* flex-wrap: wrap; */
  /* margin-left: -40px; */
  justify-content: center;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-items: center;
}

.hint {
  margin: 0 10%;
}

.hint p {
  margin-top: 40px;
  margin-bottom: 32px;
  font-size: 28px;
  font-weight: 600;
}

.book-hint a {
  height: 100%;
}

.book-hint img {
  object-fit: cover;
  width: 272px;
  height: 100%;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.book-hint .gradient-box {
  position: absolute;
  top: 0;
  left: 40px;
  width: 24px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 17.71%,
    rgba(0, 0, 0, 0.24) 45.21%,
    rgba(0, 0, 0, 0.2) 59.38%,
    rgba(0, 0, 0, 0.08) 79.17%,
    rgba(217, 217, 217, 0) 100%
  );
}

.catagory-book {
  margin: 0 10%;
  /* margin-right: 256px; */
  margin-top: 55px;
}

.catagory-book h3 {
  color: rgba(77, 77, 77, 1);
  font-size: 28px;
  font-weight: 600;
  /* margin-bottom: 105px; */
}

.catagories {
  flex-wrap: wrap;
  justify-content: center;
}

.ke {
  width: 244px;
  height: 94px;
  background-color: rgba(234, 230, 215, 1);
  border-radius: 5px;
}

.book {
  width: fit-content;
  margin: 0 13.5px;
  margin-top: 160px;
}

.book img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0px auto;
}

.book p {
  position: absolute;
  text-align: center;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
}

footer {
  background-color: rgba(203, 181, 161, 1);
  width: 100%;
  height: 52px;
  margin-top: 125px;
}

footer p {
  color: rgba(30, 30, 30, 1);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  line-height: 52px;
}

.list_danhmuc {
  width: 100%;
  display: none;
}

.danhmuc.active .list_danhmuc {
  display: block;
}

.danhmuc__item {
  /* display: flex; */
  align-items: center;
  margin: 10px 0px;
}

.danhmuc__item p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  color: rgba(30, 30, 30, 1);
}

.line-ngang {
  background-color: rgba(224, 224, 224, 1);
  width: 256px;
  height: 1px;
  margin-top: 23px;
  margin-bottom: 10px;
}

@media (max-width: 1920px) {
  .book-hint img {
    width: 250px;
    height: 100%;
  }
}

@media (max-width: 1831px) {
  .book-hint img {
    /* width: 200px; */
    width: 100%;
    height: 100%;
  }

  .hint {
    /* margin: 0 256px;
    margin-right: 216px; */
    margin: 0 10%;
  }
}
@media (max-width: 1200px) {
  .books-hint {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  header {
    background-repeat: no-repeat;
    height: 200px;
    background-size: contain;
  }

  .title {
    padding-top: 20px;
    padding-left: 5%;
    margin-bottom: 52px;
    justify-content: unset !important;
    align-items: center;
  }

  .title h3 {
    font-size: 24px;
    margin-left: 10px !important;
  }

  .danhmuc__select p {
    display: none;
  }

  .container {
    padding: 0 !important;
  }

  input[type="seach"] {
    font-size: 12px;
  }

  div#search {
    height: 45px;
  }

  .search img {
    width: 20px;
    height: 20px;
  }

  .hint {
    margin: 0;
  }

  .books-hint {
    margin-left: 0;
    grid-template-columns: 1fr 1fr;
  }

  .hint p {
    font-size: 24px;
    margin-left: 12px;
  }

  .catagory-book {
    margin: 0;
  }

  .catagory-book h3 {
    font-size: 24px;
    margin-left: 12px;
  }

  .danhmuc {
    /* margin-top: 546px; */
    width: 63%;
  }
}
